import request from '@/utils/request'

// 查询订单购物详情列表
export function listStoreOrderCartInfo(query) {
  return request({
    url: '/business/storeOrderCartInfo/list',
    method: 'get',
    params: query
  })
}

// 查询订单购物详情所有列表
export function listAllStoreOrderCartInfo(query) {
  return request({
    url: '/business/storeOrderCartInfo/listAll',
    method: 'get',
    params: query
  })
}

// 查询订单购物详情详细
export function getStoreOrderCartInfo(id) {
  return request({
    url: '/business/storeOrderCartInfo/getInfo/' + id,
    method: 'get'
  })
}

// 新增订单购物详情
export function addStoreOrderCartInfo(data) {
  return request({
    url: '/business/storeOrderCartInfo/add',
    method: 'post',
    data: data
  })
}

// 修改订单购物详情
export function updateStoreOrderCartInfo(data) {
  return request({
    url: '/business/storeOrderCartInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除订单购物详情
export function delStoreOrderCartInfo(id) {
  return request({
    url: '/business/storeOrderCartInfo/remove/' + id,
    method: 'get'
  })
}
